package org.chen.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("verification_code")
public class VerificationCode extends Model<VerificationCode> {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("code")
    private String code;
    @TableField("email")
    private String email;
    @TableField("expiryDate")
    private LocalDateTime expiryDate;

}
